cmake_minimum_required(VERSION 3.5.0)

project(web_src_local)

set(CMAKE_CXX_STANDARD 17)

file(GLOB local_src *.cpp)
file(GLOB local_header *.h)

add_library(web ${local_header} ${local_src})

if(UNIX)
target_link_libraries(web PUBLIC pthread)
endif()

if(WIN32)
target_link_libraries(web PUBLIC ws2_32)
endif()